/**
 * 
 * @param {*} min  //最小随机数
 * @param {*} max  //最大随机数
 */

const randomNumber = ((min, max) => Math.floor(Math.random() * (max - min) + min))

const randomColor = ((min, max) => { //生成随机颜色
    let r = randomNumber(min, max);
    let g = randomNumber(min, max);
    let b = randomNumber(min, max);
    return `rgb(${r},${g},${b})`
})

export {
    randomNumber,
    randomColor
}